import request from '@/utils/request'


export function getApplyList(data) {
	return request({
		'url': '/golden/material/apply/list',
		'method': 'get',
		'data': data
	})
}


export function getManagerList(data) {
	return request({
		'url': '/golden/material/apply/managerlist',
		'method': 'get',
		'data': data
	})
}


export function saveApply(data) {
	return request({
		'url': '/golden/material/apply',
		'method': 'post',
		'data': data
	})
}

export function getApply(id) {
	return request({
		'url': `/golden/material/apply/${id}`,
		'method': 'get',
	})
}

export function auditApply(data) {
	return request({
		'url': `/golden/material/apply/audit`,
		'method': 'put',
		'data': data
	})
}


// 物资退还
export function returnList(data) {
	return request({
		'url': `/golden/material/return/list`,
		'method': 'get',
		'data': data
	})
}

export function returnPost(data) {
	return request({
		'url': `/golden/material/return`,
		'method': 'post',
		'data': data
	})
}

export function returnDetail(id) {
	return request({
		'url': `/golden/material/return/${id}`,
		'method': 'get',
	})
}

export function returnApplyList(data) {
	return request({
		'url': `/golden/material/return/applylist`,
		'method': 'get',
		'data': data
	})
}



//查询待发任务单列表
export function toSend(data) {
	return request({
		'url': `/golden/salary/apply/toSend`,
		'method': 'get',
		'data': data
	})
}

//查询待发任务总额
export function toSendTotal(data) {
	return request({
		'url': `/golden/salary/apply/toSendTotal`,
		'method': 'get',
		'data': data
	})
}

//查询已发任务单列表
export function alreadySend(data) {
	return request({
		'url': `/golden/salary/apply/alreadySend`,
		'method': 'get',
		'data': data
	})
}

//查询已发任务总额
export function alreadySendTotal(data) {
	return request({
		'url': `/golden/salary/apply/alreadySendTotal`,
		'method': 'get',
		'data': data
	})
}

//立即发放/app/golden/salary/apply/immediately-send
export function immediatelySend(data) {
	return request({
		'url': `/golden/salary/apply/immediately-send`,
		'method': 'post',
		'data': data
	})
}


//获取保险列表/app/construction-insurance
export function insuranceList(data) {
	return request({
		'url': `/construction-insurance`,
		'method': 'get',
		'data': data
	})
}

//获取工程保险详细信息 /app/construction-insurance/{id}
export function insuranceDetail(id) {
	return request({
		'url': `/construction-insurance/${id}`,
		'method': 'get',
	})
}


//新增工程保险
export function insuranceAdd(data) {
	return request({
		'url': `/construction-insurance`,
		'method': 'post',
		'data': data
	})
}

//新增工程保险
export function insuranceEdit(data) {
	return request({
		'url': `/construction-insurance`,
		'method': 'put',
		'data': data
	})
}

//已发任务详情 /app/golden/salary/apply/export-already
export function exportAlready(data) {
	return request({
		'url': `/golden/salary/apply/export-already`,
		'method': 'post',
		'data': data
	})
}



// 待发任务详情
export function toSendDetail(data) {
	return request({
		'url': `/golden/salary/apply/export`,
		'method': 'post',
		'data': data
	})
}